{% extends "afcp/amusement/amusement.html" %}
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
  - http://heavyz.blogspot.com/
  - http://buggarden.blogspot.com/

  Created on 2008-11-18.
  $Id: planet.html 282 2008-11-19 17:33:52Z heavyzheng $
-->
{% endcomment %}

{#------------------------------------------------------------------------------------------------#}

{% block html_head %}

<link rel="stylesheet" type="text/css" media="screen" href="/static/afcp/stylesheets/planet.css"/>

<title>Planet AFCP</title>

{% include "afcp/google_ajax_feed_api.html" %}
{% include "afcp/feeds_aggregator.html" %}

<script type="text/javascript">//<![CDATA[

function initialize() {
    var aggregator = new FeedsAggregator();
    {% for feed in feeds %}
        aggregator.addFeed("{{ feed.feed_link }}");
    {% endfor %}
	aggregator.showEntries = 5;
    aggregator.feedsNodeId = "feeds";
    aggregator.loadAndRender();
}

$(document).ready( function() { initialize(); } );

function markCurrentEntry() {
    $("#entry_{{ page_name }}").addClass("current");
}

$(document).ready( function() { markCurrentEntry(); } );



//]]></script>



{% endblock %}{# html_head #}

{#------------------------------------------------------------------------------------------------#}

{% block header %}
{% endblock %}{# header #}

{#------------------------------------------------------------------------------------------------#}

{% block content %}

<div id="planet-header">
  <p>
    In computing, <b>Planet</b> is a feed aggregator application designed to collect posts from the
    weblogs of members of an Internet community and display them on a single page. Planet runs on a
    web server. It creates pages with entries from the original feeds in chronological order, most
    recent entries first.
  </p>
  <p>
    Websites that aggregates posts from different blogs using Planet or similar software are known
    as planets themselves.
  </p>
  <p style="text-align: right;">
    Quoted from <a href="http://en.wikipedia.org/wiki/Planet_(software)" rel="external">WikiPedia.org</a>
  </p>
</div><!--/#planet-header-->

<div id="planet-content" class="container">

  <div id="left-column">
  
    <div id="planet-feeds" class="section">
      <h2>Latest Posts</h2>
      <div id="feeds"></div>
    </div><!--/#planet-feeds-->
  
  </div><!--/#left-column-->
  
  <div id="right-column">
  
    <div id="planet-members" class="section">
      <h2>Planet Members</h2>
      {% for feed in feeds %}
        <div class="entry">
          <div class="entry-title">
            <a href="{{ feed.site_link }}" rel="external">{{ feed.site_name|escape }}</a>
          </div>
          <div class="entry-info">
            From {{ feed.author }}.
          </div>
        </div><!--/.entry-->
      {% endfor %}
    </div><!--/#planet-members-->
  
  </div><!--/#right-column-->

</div><!--/#planet-content-->

{% endblock %}{# sidebar_and_content #}




